<h3>
  <span>团队指标</span>
  <div class="mar-bar">
    <div>
      <b>75%</b>
    </div>
  </div>
  <div class="mar-data">
    <em>团队月目标/当前目标总和：</em>
    <strong>300</strong>
    <em>/</em>
    <strong>400</strong>
  </div>
</h3>
<div class="mar-con">
  <div class="scrollbox">
    <table>
      <thead>
        <tr>
          <th class="mar-name">姓名</th>
          <th class="mar-p">指标（人）</th>
          <th class="mar-schedule">进度（人）</th>
          <th class="mar-operation">
            <div>
              <em>操作</em>
            </div>
          </th>
        </tr>
      </thead>
      <tbody>
        <% @employee_of_studios.each do |post| %>
          <tr>
            <td><%= post.employee.name %></td>
            <% targets = post.targets.month_target(@month) %>
            <% unless targets.blank? %>
              <td> <%= targets.first.amount %> </td>
              <td> - </td>
              <td class="mar-operation">
                <div>
                  <em>[</em>
                  <%= link_to "详情", detail_market_admin_targets_path(target_id: targets.first.id, month: @month)%>
                  <em>]</em>
                  <em>[</em>
                  <span><%= link_to "月目标设置", edit_market_target_admin_targets_path(target_id: targets.first.id, month: @month), remote: true %></span>
                  <em>]</em>
                </div>
              </td>
            <%else%>
              <td> - </td>
              <td> - </td>
              <td class="mar-operation">
                <div>
                  <em>[</em>
                  <span><%= link_to "月目标设置", new_market_target_admin_targets_path(post_id: post.id, month: @month), remote: true %></span>
                  <em>]</em>
                </div>
              </td>
            <%end%>
          </tr>
        <%end%>
      </tbody>
    </table>
  </div>
</div>
